package com.ftg.learn.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * SKU 表
 * </p>
 *
 * @author 布衣
 * @since 2025-07-22
 */
@Getter
@Setter
@ToString
public class Sku implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long productId;

    private String spec;

    private BigDecimal price;

    private Integer stock;
}
